package com.zx.crowdfunding.exception;

/**
 * 自定义的登录账号已经被使用异常
 * @author 郑雪
 * @date 2021-12-08
 */
public class LoginAcctAlreadyInUseException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	/**
	 * 自定义要返回的视图名称
	 */
	private String viewName;

	public LoginAcctAlreadyInUseException() {
		super();
	}

	public LoginAcctAlreadyInUseException(String arg0, Throwable arg1,
			boolean arg2, boolean arg3) {
		super(arg0, arg1, arg2, arg3);
	}

	public LoginAcctAlreadyInUseException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

	public LoginAcctAlreadyInUseException(String arg0) {
		super(arg0);
	}

	public LoginAcctAlreadyInUseException(Throwable arg0) {
		super(arg0);
	}
	
	/**
	 * 构造方法
	 * @param message 异常消息
	 * @param viewName 要返回的视图名称
	 */
	public LoginAcctAlreadyInUseException(String message, String viewName) {
		super(message);
		this.viewName = viewName;
	}

	/**
	 * 自定义要返回的视图名称
	 * @return
	 */
	public String getViewName() {
		return viewName;
	}

}
